package com.local.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import com.qianhai.common.entity.PageInfo;

@Entity
@Table(name = "local_car_type")
public class LocalCarType extends PageInfo<LocalCarType>{
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "car_type_uuid")
    private String carTypeUuid;

    @Column(name = "cartype_id")
    private String cartypeId;

    @Column(name = "cartype_name")
    private String cartypeName;

    @Column(name = "cartype_desc")
    private String cartypeDesc;

    @Column(name = "version")
    private Double version;

    public String getCarTypeUuid() {
        return carTypeUuid;
    }

    public void setCarTypeUuid(String carTypeUuid) {
        this.carTypeUuid = carTypeUuid == null ? null : carTypeUuid.trim();
    }

    public String getCartypeId() {
        return cartypeId;
    }

    public void setCartypeId(String cartypeId) {
        this.cartypeId = cartypeId == null ? null : cartypeId.trim();
    }

    public String getCartypeName() {
        return cartypeName;
    }

    public void setCartypeName(String cartypeName) {
        this.cartypeName = cartypeName == null ? null : cartypeName.trim();
    }

    public String getCartypeDesc() {
        return cartypeDesc;
    }

    public void setCartypeDesc(String cartypeDesc) {
        this.cartypeDesc = cartypeDesc == null ? null : cartypeDesc.trim();
    }

    public Double getVersion() {
        return version;
    }

    public void setVersion(Double version) {
        this.version = version;
    }
}